package ctn.event;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;

import ctn.event.processor.EventProcessor;
import ctn.util.EventUtil;

public class EventFactory {
	private String eventID;
	private EventProcessor<?> eventProcessor;
	@Autowired
	private EventUtil util;
	
	@PostConstruct
	public void setupFactory(){
		util.addFactory(this);
	}
	public String getEventID() {
		return eventID;
	}
	public void setEventID(String eventID) {
		this.eventID = eventID;
	}
	public EventProcessor<?> getEventProcessor() {
		return eventProcessor;
	}
	public void setEventProcessor(EventProcessor<?> eventProcessor) {
		this.eventProcessor = eventProcessor;
	}
	
}
